#ifndef DIALOGHISTOGRAME_H
#define DIALOGHISTOGRAME_H

#include <QDialog>
#include <QMainWindow>
#include <QPrinter>
#include <QColor>
#include <QImage>
#include <QDebug>
#include <QLabel>
#include <math.h>
#include <QMessageBox>

class QAction;
class QLabel;
class QMenu;
class QScrollArea;
class QScrollBar;

class DialogHistograme : public QDialog
{
    Q_OBJECT

public:
    explicit DialogHistograme(QWidget *parent = 0);
    explicit DialogHistograme(QWidget *parent = 0, int * phistograme = NULL, int pmode = 0);
    ~DialogHistograme();

private:
    QLabel *histogrameLabel;
    int * histograme;
    int mode;
    void creerHistograme();
    int pourcentage(int x, int largeurOrdonnee,int nbTotPixel);
    float arrondi1d(float x);
};

#endif // DIALOGHISTOGRAME_H
